package cn.dfun.demo.scdemo.order.service;

import cn.dfun.demo.scdemo.common.entity.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value="scdemo-payment")
public interface PaymentFeignService {
    @GetMapping(value="/payment/get/{id}")
    CommonResult getById(@PathVariable("id") Long id);

    @GetMapping(value="/payment/timeout")
    String timeout();
}
